Fix printing of usage when OptionError is thrown.
authorEwan Mellor <ewan@xensource.com>
Sun, 17 Dec 2006 18:24:40 +0000 (18:24 +0000)
committerEwan Mellor <ewan@xensource.com>
Sun, 17 Dec 2006 18:24:40 +0000 (18:24 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xm/main.py

index 42e6f74899aa2624b948306313e88fee205e282d..3c118172aee91bb0c40a2e369a3efe3eb8dcc5bb 100644 (file)
@@ -1802,7 +1802,7 @@ def _run_cmd(cmd, cmd_name, args):
     except OptionError, e:
         err(str(e))
         _usage(cmd_name)
-        print e.usage()
+        print e.usage
     except security.ACMError, e:
         err(str(e))
     except: